
$(function(){
	//登陆信息提醒
	var login_info = $("#login_info").val();
	
	if(login_info!=null&&jQuery.trim(login_info)!=""){
		alertDialog(login_info);
	}
	//给登陆 忘记密码 我要注册 等按钮注册事件
	$(".line_bu span").click(function(){
		var content_text = $(this).text();
		if(content_text=="登陆"){
			var username = $("#username").val();
			var password = $("#password").val();
			var code = $("#code").val();
			if(jQuery.trim(username)==""){
				alertDialog("用户名不能为空！");
			}else if(jQuery.trim(password)==""){
				alertDialog("密码不能为空！");
			}else{
				$("#loginForm").submit();
			}
			
			
			
			
		}else if(content_text=="忘记密码"){
			alert("2")
		}else if(content_text=="我要注册"){
			window.location.href="/weibo/Login_business.jsp";
		}
		
	 });
	 $(".line_b span").click(function(){
		loadimage();
	 });
	});


function alertDialog(content){
	var dialog = art.dialog({
	    title: '警告',
		content: content,
		icon: 'warning'
	});
}
function toMore(type){
	if(type=="hongren"){
		window.location.href($("#contentPath").val()+"/VisitorSeverlet.do");
	}else if(type=="mingxin"){
		window.location.href($("#contentPath").val()+"/VisitorSeverlet.do");
	}
}


